<?php use Inationsoft\NS; use Inationsoft\NS\UI\Widget; ?>
<?php $validator = array(new NS\IO\Validator\Required(''), new NS\IO\Validator\MinLength(3, '')); ?>
<div class="loginwrapper">
	<div class="loginwrap zindex100 animate2 bounceInDown">
	<h1 class="logintitle"><span class="iconfa-lock"></span> <?php echo _('Sign In'); ?> <span class="subtitle"><?php echo _('Hello! Sign in to get you started!'); ?></span></h1>
        <div class="loginwrapperinner">
            <form id="loginform" action="<?php echo NS_BASE_URL ?>/system/auth/login" method="post">
                <p class="animate4 bounceIn">
			<?php echo new Widget\Text(
				'username',
				NS\Net\Http\Cookie::getInstance()->get('username'),
				_('Username'), $validator,
				array('class' => 'login-input'));
			?>
		</p>
                <p class="animate5 bounceIn">
			<?php echo new Widget\Password(
				'password',
				null,
				_('Password'),
				$validator,
				array('class' => 'login-input'));
			?>
		</p>
                <p class="animate6 bounceIn">
			<!-- <button class="btn btn-default btn-block">Submit</button> -->
			<?php echo new Widget\Button('submit', null, Widget\Button::BUTTON_SUBMIT, _('Sign In'), array('class' => 'btn btn-default btn-block')) ?>
		</p>
                <p class="animate7 fadeIn"><a href=""><span class="icon-question-sign icon-white"></span> Forgot Password?</a></p>
		<?php echo new Widget\Hidden('redirect', NS_BASE_URL) ?>
            </form>
	    <?php NS\IO\Validator\ValidatorManager::getInstance()->addValidate('loginform'); ?>
        </div><!--loginwrapperinner-->
    </div>
    <div class="loginshadow animate3 fadeInUp"></div>
</div><!--loginwrapper-->
